package com.shiyuanshenghong.service.portraitsofpoorhoseholdsservice.impl;

import com.shiyuanshenghong.service.portraitsofpoorhoseholdsservice.PortraitsOfPoorHouseholdsService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by LZQ on 2017/12/18.
 */

@Service
public class PortraitsOfPoorHouseholdsServiceImpl implements PortraitsOfPoorHouseholdsService {

    @Override
    public Map<String, Integer> distributionOfPoorThermal() {
        Map<String,Integer> map=new HashMap<>();
        map.put("vouseholdsTotal",6146);
        map.put("villageTotal",125);
        return map;
    }

    @Override
    public Map<String, Double> distributionOfPovertyCauses() {
        Map<String,Double> map=new HashMap<>();
        map.put("disease",0.35);
        map.put("physicalDisability",0.18);
        map.put("lackofLabor",0.07);
        map.put("lackofFunds",0.22);
        map.put("lackOfSelfDevelopment",0.05);
        map.put("other",0.13);
        return map;
    }

    @Override
    public Map<String, Integer> distributionOfPovertyAttribute() {
        Map<String,Integer> map=new HashMap<>();
        map.put("registerPovertyNumber",15595);
        map.put("newPovertyNumber",6300);
        map.put("againPovertyNumber",3119);
        return map;
    }

    @Override
    public Map<String, Double> distributionOfEducationalBackground() {
        Map<String,Double> map=new HashMap<>();
        map.put("preschoolChildren",0.01);
        map.put("illiteracy",0.18);
        map.put("primaryCulture",0.29);
        map.put("JuniorMiddleCulture",0.36);
        map.put("highCulture",0.05);
        map.put("collegeCulture",0.01);
        return map;
    }

    @Override
    public Map<String, Integer> distributionOfIncomePictureOfPoorHouseholds() {
        Map<String, Integer> map=new HashMap<>();
        map.put("low500",30);
        map.put("top500",30);
        map.put("top1000",50);
        map.put("top1500",30);
        map.put("top2000",30);
        map.put("top3000",200);
        return map;
    }

    @Override
    public Map<String, Integer> distributionOfTypeOfPoorPopulation() {
        Map<String, Integer> map=new HashMap<>();
        map.put("impoverishedPovertyNumber",2334);
        map.put("unimpoverishedPovertyNumber",34034);
        map.put("otherNumber",6494);
        return map;
    }

    @Override
    public Map<String, Integer> distributionOfPoorHouseholdsOfHousing() {
        Map<String, Integer> map=new HashMap<>();
        map.put("safeHousing",4031);
        map.put("CHousing",888);
        map.put("DHousing",1233);
        return map;
    }
}
